<template>
  <div>
    <van-grid :column-num="5">
      <van-grid-item
        v-for="item in channelArr"
        :key="item.id"
        :icon="item.icon_url"
        :text="item.name"
        @click="btn(item.id)"
      />
    </van-grid>
  </div>
</template>

<script>
export default {
  props: ["channelArr"],
  data() {
    return {};
  },
  methods: {
    btn(id) {
      this.$router.push({
        name: "channel",
        query: { id },
      });
    },
  },
};
</script>
 
<style lang = "less" scoped>
</style>